package com.sitanyun.merchant.guide.adapter;

import android.content.Context;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sitanyun.merchant.guide.R;
import com.sitanyun.merchant.guide.bean.SwishShopBean;

/**
 * Created by jzl
 * on 2022/1/6.
 * 切换门店适配器
 */
public class SwishShopAdapter extends BaseQuickAdapter<SwishShopBean.DataBean, BaseViewHolder> {

    private TextView view;

    public SwishShopAdapter(Context context) {
        super(R.layout.swishop_item);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, SwishShopBean.DataBean item) {
        helper.setText(R.id.swi_shop,item.getStoreName());
        helper.setText(R.id.swi_address,item.getAddress());
        helper.setText(R.id.swi_zy,item.getPosition());
        helper.setText(R.id.swi_enter,item.getEnterpriseName());
        view = helper.getView(R.id.xz);
//        if (item.getIsClick()==0){
//            view.setVisibility(View.GONE);
//        }else {
//            view.setVisibility(View.VISIBLE);
//        }

    }

}
